package com.gold.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by ChangYY <502341194@163.com>
 * 2015-03-20
 * 13:20
 * TO DO What
 */
public class PropertyUtil {

    public static String getPropertiesByName(String proName,String fileName){
        Properties prop = new Properties();
        InputStream is = PropertyUtil.class.getResourceAsStream("/" +fileName+".properties");
        try {
            prop.load(is);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            System.out.println(fileName+"文件加载异常");
        }
        return prop.getProperty(proName);
    }

    public static void main(String args[]) throws Exception{
        System.out.println(MsgUtils.getMD5("cyy"));
    }
}
